package com.cswnode.Service;

import com.cswnode.Entity.User;

import java.util.Map;

public interface RegisteredService {

     int JudgeUsername(String username);

     /**
      * 判断邮箱是否存在
      * @param email
      * @return
      */
     Boolean JudgeEmail(String email);

     /**
      * 注册用户·
      * @param user
      * @return
      */
     Map<String,Object> RegisterdUser(User user);

     /**
      * 激活用户
      * @param userId
      * @param code
      * @return 0）激活成功；1）重复的无效激活；2）激活失败
      */
     int ActivationUser(int userId,String code);
}
